<?php
$this->load->view($this->template->tpl_prefix_admin . 'youtube/header');
?>
<?php
$header = array('ID', 'Tên','Link','Page From','Page To','Trạng thái');
$config = array(
    'header_icon' => 'icon-list',
    'header_title' => 'Quản lý '.@$tresource->RES_NAME,
    'ID' => '0',
    'showEdit' => false,
    'showDelete' => false,
);
if ($this->permission->check("delete", $this->resCode))
    $config['showDelete'] = true;

if ($this->permission->check("update", $this->resCode))
    $config['showEdit'] = true;

$data = array();
//Các project tham gia
$stt = 0;
foreach ($datas as $result) {

    $data[] = array($result->GETL_ID, $result->GETL_ID,  $result->GETL_NAME,  $result->GETL_LINK,$result->GETL_PAGE_FROM,$result->GETL_PAGE_TO, ($result->GETL_STATUS == 1)?'Hiện':'Ẩn');
}

echo $this->atheme->table_simple($header, $data, $config);
?>

